import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class MySelectMain {

	public static void main(String[] args) throws ClassNotFoundException,
			SQLException {

		String url = "jdbc:hsqldb:file:mytest";
		Class.forName("org.hsqldb.jdbcDriver");
		Connection connection = DriverManager.getConnection(url);

		Statement statement = connection.createStatement();
		
		//connection.c

		String statementString = "SELECT * FROM USER";

		ResultSet resultSet = statement.executeQuery(statementString);

		while (resultSet.next()) {

		}

		statement.close();

		connection.close();
	}
}
